package com.example.lab2.service.impl;

import com.example.lab2.domain.entity.Job;
import com.example.lab2.domain.repository.JobRepository;
import com.example.lab2.service.JobService;
import org.springframework.stereotype.Service;

@Service
public class JobServiceImpl implements JobService {

    private final JobRepository jobRepository;

    public JobServiceImpl(JobRepository jobRepository) {
        this.jobRepository = jobRepository;
    }

    @Override
    public Job findJobById(String jobId) {
        return jobRepository.findJobById(jobId);
    }
}
